package com.mi.mapper;

import com.mi.entity.MyPages;
import com.mi.entity.ProductCategoryEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductCategoryMapper {

    //查询产品类别
    public List<ProductCategoryEntity> queryProductsRank();

    //根据条件查询产品信息
    public List<ProductCategoryEntity> queryProductsInfo(ProductCategoryEntity pce);

    /**
     * 查询产品分类
     * @param productCategoryEntity
     * @return
     */
    public List<ProductCategoryEntity> queryProductCategorys(ProductCategoryEntity productCategoryEntity);

    /**
     * 修改产品分类
     * @param productCategoryEntity
     * @return
     */
    public boolean updProductCategory(ProductCategoryEntity productCategoryEntity);

    /**
     * 删除产品分类
     * @param ids
     * @return
     */
    public boolean delProductCategory(@Param("ids") String[] ids);

    /**
     * 更改产品分类状态
     * @param productCategoryEntity
     * @return
     */
    public boolean updProductCategoryStatus(ProductCategoryEntity productCategoryEntity);


    /**
     * 添加产品分类
     * @param productCategoryEntity
     * @return
     */
    public boolean addProductCategory(ProductCategoryEntity productCategoryEntity);

}
